package com.shopping.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shopping.common.utils.PageUtils;
import com.shopping.member.entity.MemberEntity;
import com.shopping.member.exception.PhoneExistException;
import com.shopping.member.exception.UsernameExistException;
import com.shopping.member.vo.MemberLoginVo;
import com.shopping.member.vo.MemberRegisterVo;
import com.shopping.member.vo.SocialUserVo;

import java.util.Map;

/**
 * 会员
 *
 * @author Europa
 * @date 2020-04-12 01:16:39
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo registerVo);

    void checkUserName(String userName) throws UsernameExistException;

    void checkPhone(String phone) throws PhoneExistException;

    MemberEntity login(MemberLoginVo loginVo);


    MemberEntity oauthLogin(SocialUserVo userVo);
}

